package com.ldk.framework.dao;

import java.util.List;

import com.ldk.base.framework.dao.IBaseDAO;
import com.ldk.framework.entity.LinkUser;
import com.ldk.framework.entity.User;
/**
* UserDAO接口类
* @author xiangwl
*/
public interface IUserDAO extends IBaseDAO<User> {
	/**
	 * 获取指定范围的用户列表
	 * @param dbKey
	 * @param query
	 * @param lon
	 * @param lat
	 * @param distance
	 * @return
	 */
	List<User> searchByDistance(String dbKey, User query, double lon, double lat, double distance);
	
	/**
	 * 获取关联用户信息
	 * @param dbKey
	 * @param openId
	 * @return
	 */
	LinkUser getLinkUser(String dbKey, String openId);
}
